package com.zbkj.crmeb.marketing.dao;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zbkj.crmeb.marketing.model.StoreCoupon;

/**
 * 优惠券
 * @author daigb
 * @date:  2022-01-20 20:20
 */
@Mapper
public interface StoreCouponDao extends BaseMapper<StoreCoupon> {

	/**
	 * 扣减数量
	 * @author daigb
	 * @date:  2022-01-20 20:24
	 */
	Integer updateCouponTotal(@Param("id") Integer id, @Param("couponCount") Integer couponCount);

}
